package com.tang.model.v1;

import com.tang.model.domain.Member;

import java.util.Objects;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/9/2 20:09
 * @Desc
 * @Remarks
 */
public class AuthHandler extends Handler {

    @Override
    public void exec(Member member) {
        System.out.println("权限校验");
        if (Objects.equals(member.getRoleName(), "管理员")) {
            System.out.println("有管理权限");
        } else {
            System.out.println("无权限");
        }
    }
}
